package top.melody.ecommerce.platform.dal.goods;

import top.melody.ecommerce.common.util.page.Pagination;
import top.melody.ecommerce.platform.api.domain.goods.GoodsInfo;

import java.util.List;

/**
* @author: melody
* @groupId:rd
* @createdate:2016-10-18
* @mail: blentle.huan.ren@gmail.com
* @description:
* @since: 1.0
*/
public interface GoodsInfoMapper {

    List<GoodsInfo> queryByPage(GoodsInfo record, Pagination page);

    Integer getCount(GoodsInfo record);

    GoodsInfo get(Object key);

    Integer insert(GoodsInfo record);

    Integer insertSelective(GoodsInfo record);

    Integer delete(GoodsInfo record);

    Integer deleteByPrimaryKey(Object key);

    Integer updateByPrimaryKey(GoodsInfo record);

    Integer updateByPrimaryKeySelective(GoodsInfo record);
}